Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

760 chat sendbutton visual feedback #812

Merged
merged 7 commits into from
Jan 4, 2017
Merged

760 chat sendbutton visual feedback #812

merged 7 commits into from
Jan 4, 2017

Conversation

nnice
Copy link
Contributor

@nnice nnice commented Jan 2, 2017

resolves #812

@nnice nnice added the wip label Jan 2, 2017
@nnice nnice self-assigned this Jan 2, 2017
@nnice nnice removed the wip label Jan 3, 2017
@@ -4,15 +4,20 @@ import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.graphics.PorterDuff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import

@@ -142,6 +147,19 @@ class ChatFragment : ChatView, BaseFragment(), AnkoLogger {
}

bt_send.onClick { presenter.sendMessage() }
deactivateSendButton()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract the onTextChanged handler method and just call it here. This makes future modifications a bit harder, e.g. restoring the last unsent message into the message field.

@audax audax merged commit 36f6b60 into Qabel:master Jan 4, 2017
@audax audax added this to the KW1/2 milestone Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants